home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / Prog / Djgpp / PDCUR24B.ZIP / include / panel.h < prev   
Encoding:
C/C++ Source or Header  |  1995-11-22  |  2.5 KB  |  83 lines

  1. /*
  2. ***************************************************************************
  3. * This file comprises part of PDCurses. PDCurses is Public Domain software.
  4. * You may use this code for whatever purposes you desire. This software
  5. * is provided AS IS with NO WARRANTY whatsoever.
  6. * Should this software be used in another application, an acknowledgement
  7. * that PDCurses code is used would be appreciated, but is not mandatory.
  8. *
  9. * Any changes which you make to this software which may improve or enhance
  10. * it, should be forwarded to the current maintainer for the benefit of 
  11. * other users.
  12. *
  13. * The only restriction placed on this code is that no distribution of
  14. * modified PDCurses code be made under the PDCurses name, by anyone
  15. * other than the current maintainer.
  16. * See the file maintain.er for details of the current maintainer.
  17. ***************************************************************************
  18. */
  19. /* 
  20. $Id
  21. */
  22. /*
  23. *----------------------------------------------------------------------
  24. *                Panels for PDCurses
  25. *----------------------------------------------------------------------
  26. */
  27.  
  28. #include <curses.h>
  29.  
  30. typedef struct panelobs
  31. {
  32.     struct panelobs *above;
  33.     struct panel *pan;
  34. } PANELOBS;
  35.  
  36. typedef struct panel
  37. {
  38.     WINDOW *win;
  39.     int wstarty;
  40.     int wendy;
  41.     int wstartx;
  42.     int wendx;
  43.     struct panel *below;
  44.     struct panel *above;
  45.     char *user;
  46.     struct panelobs *obscure;
  47. } PANEL;
  48.  
  49. #ifdef HAVE_PROTO
  50. WINDOW *panel_window(PANEL *pan);
  51. void update_panels(void );
  52. int hide_panel(PANEL *pan);
  53. int show_panel(PANEL *pan);
  54. int del_panel(PANEL *pan);
  55. int top_panel(PANEL *pan);
  56. int bottom_panel(PANEL *pan);
  57. PANEL *new_panel(WINDOW *win);
  58. PANEL *panel_above(PANEL *pan);
  59. PANEL *panel_below(PANEL *pan);
  60. int set_panel_userptr(PANEL *pan,char *uptr);
  61. char *panel_userptr(PANEL *pan);
  62. int move_panel(PANEL *pan,int starty,int startx);
  63. int replace_panel(PANEL *pan,WINDOW *win);
  64. #else
  65. WINDOW *panel_window( /* PANEL *pan */ );
  66. void update_panels( /* void  */ );
  67. int hide_panel( /* PANEL *pan */ );
  68. int show_panel( /* PANEL *pan */ );
  69. int del_panel( /* PANEL *pan */ );
  70. int top_panel( /* PANEL *pan */ );
  71. int bottom_panel( /* PANEL *pan */ );
  72. PANEL *new_panel( /* WINDOW *win */ );
  73. PANEL *panel_above( /* PANEL *pan */ );
  74. PANEL *panel_below( /* PANEL *pan */ );
  75. int set_panel_userptr( /* PANEL *pan,char *uptr */ );
  76. char *panel_userptr( /* PANEL *pan */ );
  77. int move_panel( /* PANEL *pan,int starty,int startx */ );
  78. int replace_panel( /* PANEL *pan,WINDOW *win */ );
  79. #endif
  80.  
  81. /* end of panel.h */
  82.